package com.itwn.portal.service;

import com.itwn.portal.model.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itwn.portal.model.vo.AddressRequest;
import com.itwn.portal.model.vo.AddressVo;

import java.util.List;

/**
* @author 61073
* @description 针对表【t_address】的数据库操作Service
* @createDate 2024-12-18 10:03:40
*/
public interface AddressService extends IService<Address> {

    /**
     * 根据用户id查询用户地址
     * @param userId 用户id
     * @return 返回地址的vo对象
     */
    List<AddressVo> findAddress(long userId);

    void saveAddress(String userId, AddressRequest request);
}
